package com.zdw.oauth.dto;

import com.zdw.common.parent.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author 卓德文
 * @since 2023-07-17
 */
@Getter
@Setter
@ApiModel(value = "UserRoleEntity对象", description = "")
public class UserRoleDto extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @NotNull(message = "请选择用户")
    private Integer userId;

    @ApiModelProperty("用户拥有的角色列表")
    @NotNull(message = "请选择角色")
    List<Integer> roleIdList = new ArrayList<>();

}
